package com.example.datenote;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.Window;
import android.view.WindowManager;

/**
 * Created by LDS on 2018/6/21.
 */

public class open extends Activity {
    private Handler mHandler;
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
	       /*set it to be full screen*/
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
                WindowManager.LayoutParams.FLAG_FULLSCREEN);

        setContentView(R.layout.open);
        mHandler = new Handler();
        mHandler.postDelayed(new Runnable(){

            public void run() {
                // TODO Auto-generated method stub
                Intent intent = new Intent(open.this, MainActivity.class);
                startActivity(intent);
                open.this.finish();
            }
        },5000);


    }

}
